package top.lywivan.mm.service.imp;

import top.lywivan.mm.dao.CompanyDao;
import top.lywivan.mm.pojo.Company;
import top.lywivan.mm.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyDao companyDao;

    @Override
    @Transactional(readOnly = true)
    public List<Company> findListAllCompany() {
        return companyDao.findListAllCompany();
    }
}
